Page({
  data: {
    dataArr: []
  },
  onLoad: function() {
    var self = this;
    var app = getApp();
    wx.request({
      url: 'https://www.apiopen.top/journalismApi',
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        // console.log(res.data);
        app.globalData.baseData = res.data;
        self.setData({
          dataArr: app.globalData.baseData.data.auto
        });
        console.log('self.dataArr-------------------------');
        // console.log(app.globalData.baseData);
        self.dataArr = app.globalData.baseData.data.auto;
        console.log(self.dataArr);
      }
    })
  },
  onReady: function() {

  }
})